package com.ai.model.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;

/**
 * @Author jiaok
 * @Date 2024-05-06 14:21
 */
@Data
@Setter
@Getter
public class SysNettyLinkVo {

    @ApiModelProperty("链路代号")
    @NotNull(message = "链路代号不能为空")
    private String code;

    @ApiModelProperty("链路端口号")
    @NotNull(message = "链路端口号不能为空")
    private Integer port;

    @ApiModelProperty("链路IP")
    @NotNull(message = "链路IP不能为空")
    private String ip;

    @ApiModelProperty("客户端且固定端口时填写")
    private int regularPort;

    @ApiModelProperty("是否为本服务链路")
    @NotNull(message = "是否为本服务链路不能为空")
    private Integer isLocal;

    @ApiModelProperty("是否启动")
    @NotNull(message = "是否启动不能为空")
    private Integer isStart;

    @ApiModelProperty("链路类型（1.服务端，2.客户端）")
    @NotNull(message = "链路类型不能为空")
    private Integer nettyType;

    @ApiModelProperty("链路名称")
    @NotNull(message = "链路名称不能为空")
    private Integer lineName;

}
